#!/bin/bash

dmesg --color=always --nopager |less -R

exit 0

#display dmesg with every other line colored so that you can tell where a new line begins

c1="0;36"

if test "$#" -gt "0" ; then
	c1="1;37"
fi

c2="0;"

dmesg -r |awk 'NR%2==0 { printf "\033['$c1'm%s\033[0m\n",$0 ; next }; NR%1==0 { printf "\033['$c2'm%s\033[0m\n",$0 }'|less -R


